@extends('admin.common.admin_main')
@section('container')
<div class="uc-body">
    <div class="uc-head">
        <ul>
            <li><span>设备详情</span></li>
        </ul>
    </div>
    <div class="form form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="label">设备名称：</div>
                <div class="control-text">
                    <div class="static">{{$dataInfo['device_name']}}</div>
                </div>
            </div>
            @if (count($dataInfo['device_number_list_td'])>0)
            <table class="table">
                <thead>
                <tr>
                    @forelse ($dataInfo['device_number_list_th'] as $key=>$value)
                        @if ($key!=0)
                            <th>{{$value}}</th>
                        @endif
                    @empty
                    @endforelse
                </tr>
                </thead>
                <tbody>
                    @forelse ($dataInfo['device_number_list_td'] as $key=>$value)
                        <tr>
                            @forelse ($value as $key1=>$value1)
                                @if ($key1 == 1)
                                    <td>
                                        <div class="tit">{{$value1}}</div>
                                    </td>
                                @else
                                    @if ($key1!=0)
                                    <td>{{$value1}}</td>
                                    @endif
                                @endif
                            @empty
                            @endforelse
                        </tr>
                    @empty
                    @endforelse
                </tbody>
            </table>
            @endif

            <div class="row">
                <div class="label">设备品牌：</div>
                <div class="control-text">
                    <div class="static">{{$dataInfo['brand_name']}}</div>
                </div>
            </div>
            <div class="row">
                <div class="label">设备类别：</div>
                <div class="control-text">
                    <div class="static">{{$dataInfo['type_name']}}</div>
                </div>
            </div>
            <div class="row">
                <div class="label">设备图片：</div>
                <div class="control-text">
                    @if ($dataInfo['img_list'])
                        <div class="file_list">
                            <ul>
                                @forelse ($dataInfo['img_list'] as $key=>$value)
                                    <li>
                                        <img src="{{$value}}" width="88" height="88" alt="">
                                    </li>
                                @empty
                                @endforelse
                            </ul>
                        </div>
                    @endif
                </div>
            </div>
            <div class="row">
                <div class="label">设备介绍：</div>
                <div class="control-text">
                    <div class="static">{!!$dataInfo['device_desc']!!}</div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
